
import { _decorator, Component, director, Node } from 'cc';
import { SceneEnum } from '../Enum';
import { SceneManager } from './SceneManager';
import DataManager from './Runtime/DataManager';
const { ccclass, property } = _decorator;


@ccclass('MenuSceneManager')
export class MenuSceneManager extends SceneManager {
    type: SceneEnum = SceneEnum.MENU;

    handleNewGame() {
        DataManager.Instance.reset();
        director.loadScene(SceneEnum.H1);
    }

    handleNewContinue() {
        DataManager.Instance.restore();
        director.loadScene(DataManager.Instance.curScene)
    }

    render() {
    }
}

